import Event from "./event";

export default class ErrorEvent extends Event {
  static ERROR = "error";
  error = null
  constructor(n, r) {
    super(n, ErrorEvent.ERROR);
  }
  clone(e) {
    let n = this;
    return (
      (e = arguments.length > 0 ? e : n.target),
      new ErrorEvent(e, n.error)
    );
  }
}
